#include <stdio.h>

struct chengji
{
	int yuwen;        // 1 + 3
	int shuxue;        // 4 
	int yingyu;     // 8

};

struct People         //  int
{
	char name[18];   // 18 + 2 
	int	 age;        // 4
	char sex;        // 1 + 3 
	float shouru;    // 4
	char* addr;	     //	4
	struct chengji fenshu;	// 12
};

int main()
{
	int i = 0;
	
	int a = 6;
	int* p = NULL;
	p = &a;
//	printf("a == %d\n",a);
	printf("*p == %d\n",*p);
	
	
//	struct People  stu1 = {"zhangsan",18,'W',8888.88,"shenzhen"};	
	struct People  stu1 = {"zhangsan",18,'W',8888.88,"shenzhen",{98,86,91}};
	
	struct People* pstu = NULL;
	pstu = &stu1;
		
	printf("%-10s",pstu->name);
	printf("%-4d",pstu->age);
	printf("%-4c",pstu->sex);
	printf("%-10.2f",pstu->shouru);
	printf("%-20s\n",pstu->addr);
	printf("%d\n",pstu->fenshu.yuwen);
	
	
//	printf("%-10s",stu1.name);
//	printf("%-4d",stu1.age);
//	printf("%-4c",stu1.sex);
//	printf("%-10.2f",stu1.shouru);
//	printf("%-20s\n",stu1.addr);
		
//	(*pstu).name	
//	printf("%-10s",(*pstu).name);
//	printf("%-4d",(*pstu).age);
//	printf("%-4c",(*pstu).sex);
//	printf("%-10.2f",(*pstu).shouru);
//	printf("%-20s\n",(*pstu).addr);
	


	
	return 0;
}


